package com.ttbj.core.jpush.config;

import java.util.HashMap;

public class JpushConfig extends HashMap<String, Object> {

	private static final long serialVersionUID = 3804873456279797329L;
/*	private  static final String APP_KEY_KEY = "APPKEY";
*/	private static final String MASTERSECRET_KEY = "60e8d95bd73496b5aa4cee35";
	public static final String APP_KEY = "c477f67bec999540a8fb6a45";
	public static final String MASTERSECRET = "60e8d95bd73496b5aa4cee35";

	private JpushConfig() {
		super(32);
		this.put(APP_KEY, "c477f67bec999540a8fb6a45");
		this.put(MASTERSECRET_KEY, "masterSecret");
	}

	private static JpushConfig instance = new JpushConfig();

	public static JpushConfig getInstance() {
		return instance;
	}

	public void setAppKey(String appkey) {
		this.put(APP_KEY, appkey);
	}

	public void setMasterSecret(String masterSecret) {
		this.put(MASTERSECRET_KEY, masterSecret);
	}

	public  String getAppKey() {
		return (String) this.get(APP_KEY);
	}

	public String getMasterSecret() {
		return (String) this.get(MASTERSECRET_KEY);
	}
}
